package com.briup.smartcity_group6.dao.ext;


import com.briup.smartcity_group6.bean.basic.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleExtMapper {
    void changeStatusById( @Param("id") Integer id, @Param("status") Integer status);
    Integer findCategoryIdByArticleId(Integer id);
    Integer findUserIdByArticleId(Integer id);
    Integer findCommentIdByArticleId(Integer id);
    List<Integer> findIdBystatus();
    List<Article> selectAll();
    List<Integer> selectArticleIdWithUserAndTitleAndStatus
            (@Param("title") String title, @Param("status")Integer status, @Param("categoryId")Integer categoryId);

}
